﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;
namespace Server_NhaSach.DataTransferObject
{
    [DataContract]
    public class HoaDonBanSiDTO
    {
        #region "Khai báo các biến"
        private string _maHDBS;
        private string _maKho;
        private string _maKH;        
        private string _maNV;
        private string _nguoiMua;
        private DateTime _ngayBanSi;
        private string _chungTuBanSi;
        private string _ghiChuBS;
        private string _diaChiGiao;
        private float _vAT;
        private double _tongThanhTien;
        private double _soTienDaTra;
        private double _soTienConLai;
        private DateTime _ngayHenThanhToan;        
        #endregion
        #region "Khai báo các thuộc tính"
        [DataMember]
        public string MaHDBS
        {
            get { return _maHDBS; }
            set { _maHDBS = value; }
        }
        [DataMember]
        public string MaKho
        {
            get { return _maKho; }
            set { _maKho = value; }
        }
        [DataMember]
        public string MaKH
        {
            get { return _maKH; }
            set { _maKH = value; }
        }
        [DataMember]
        public string MaNV
        {
            get { return _maNV; }
            set { _maNV = value; }
        }
        [DataMember]
        public string NguoiMua
        {
            get { return _nguoiMua; }
            set { _nguoiMua = value; }
        }
        [DataMember]
        public DateTime NgayBanSi
        {
            get { return _ngayBanSi; }
            set { _ngayBanSi = value; }
        }
        [DataMember]
        public string ChungTuBanSi
        {
            get { return _chungTuBanSi; }
            set { _chungTuBanSi = value; }
        }
        [DataMember]
        public string GhiChuBS
        {
            get { return _ghiChuBS; }
            set { _ghiChuBS = value; }
        }
        [DataMember]
        public string DiaChiGiao
        {
            get { return _diaChiGiao; }
            set { _diaChiGiao = value; }
        }
        [DataMember]
        public float VAT
        {
            get { return _vAT; }
            set { _vAT = value; }
        }
        [DataMember]
        public double TongThanhTien
        {
            get { return _tongThanhTien; }
            set { _tongThanhTien = value; }
        }
        [DataMember]
        public double SoTienDaTra
        {
            get { return _soTienDaTra; }
            set { _soTienDaTra = value; }
        }
        [DataMember]
        public double SoTienConLai
        {
            get { return _soTienConLai; }
            set { _soTienConLai = value; }
        }
        [DataMember]
        public DateTime NgayHenThanhToan
        {
            get { return _ngayHenThanhToan; }
            set { _ngayHenThanhToan = value; }
        }
        #endregion
        #region "Khai báo các contructor"
        public HoaDonBanSiDTO() { }
        public HoaDonBanSiDTO(string maHDBS, string maKho, string maKH, string maNV, string nguoiMua, DateTime ngayBanSi, string chungTuBanSi, string ghiChuBS, string diaChiGiao, float vAT, double tongThanhTien, double soTienDaTra, double soTienConLai, DateTime ngayHenThanhToan) 
        {
            this.MaHDBS = maHDBS;
            this.MaKho = maKho;
            this.MaKH = maKH;
            this.MaNV = maNV;
            this.NguoiMua = nguoiMua;
            this.NgayBanSi = ngayBanSi;
            this.ChungTuBanSi = chungTuBanSi;
            this.GhiChuBS = ghiChuBS;
            this.DiaChiGiao = diaChiGiao;
            this.VAT = vAT;
            this.TongThanhTien = tongThanhTien;
            this.SoTienDaTra = soTienDaTra;
            this.SoTienConLai = soTienConLai;
            this.NgayHenThanhToan = ngayHenThanhToan;
        }
        public HoaDonBanSiDTO(HoaDonBanSiDTO HoaDonBanSi) 
        {
            this.MaHDBS = HoaDonBanSi.MaHDBS;
            this.MaKho = HoaDonBanSi.MaKho;
            this.MaKH = HoaDonBanSi.MaKH;
            this.MaNV = HoaDonBanSi.MaNV;
            this.NguoiMua = HoaDonBanSi.NguoiMua;
            this.NgayBanSi = HoaDonBanSi.NgayBanSi;
            this.ChungTuBanSi = HoaDonBanSi.ChungTuBanSi;
            this.GhiChuBS = HoaDonBanSi.GhiChuBS;
            this.DiaChiGiao = HoaDonBanSi.DiaChiGiao;
            this.VAT = HoaDonBanSi.VAT;
            this.TongThanhTien = HoaDonBanSi.TongThanhTien;
            this.SoTienDaTra = HoaDonBanSi.SoTienDaTra;
            this.SoTienConLai = HoaDonBanSi.SoTienConLai;
            this.NgayHenThanhToan = HoaDonBanSi.NgayHenThanhToan;
        }
        #endregion
    }
}